<?php

namespace App\Services;

use App\Http\Resources\Mini\StoreClassCollection;
use App\Models\StoresCate;

class StoreClassService extends BaseService
{

    /**
     * 店铺分类列表
     * @return array
     */
    public function getList()
    {
        $model = new StoresCate();
        $list = $model->paginate(request()->per_page ?? 30);
        return $this->format(new StoreClassCollection($list));
    }
}
